<?php
/**
 * @package		Joomla.Site
 * @subpackage	com_content
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

// Create a shortcut for params.
$params = &$this->item->params;
$images = json_decode($this->item->images);
$canEdit	= $this->item->params->get('access-edit');
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.tooltip');
JHtml::core();

preg_match( '/img(.*?)src\=\"(.*?)\"/',$this->item->introtext, $match );			
$result = isset($match[2]) ? $match[2] : "";
$price = strip_tags($this->item->introtext);

?>


<a href="<?php echo $images->image_fulltext; ?>" title="<?php echo $this->escape($this->item->title); ?>" class="fxbox" rel='fx_group'><img src="<?php echo $result; ?>" class="bd1" /></a>
						<p class="pa0 fs12"><?php echo $this->escape($this->item->title); ?></p>
						<p class="pa0 fs12 cf2"><?php echo $price; ?></p>


<?php echo $this->item->event->afterDisplayContent; ?>
